<?php

namespace app\common\validate\company;

use think\Validate;

class CompanyValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        'name|企业名称'   =>  ['require'],
        'tel|联系方式'   =>  ['require'],
        'address|具体地址'   =>  ['require'],
        'isplanform|是否接入平台'   =>  ['require'],
        'license|营业执照'   =>  ['require'],
        'lon|地图定位'   =>  ['require'],
        'lat|地图定位'   =>  ['require'],
        'username|负责人名称'   =>  ['require'],
        'usercard|负责人身份证'   =>  ['require'],
        'usertel|负责人电话'   =>  ['require'],
    ];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [
      
    ];

    protected $scene = [
        'companycreate'  =>  ['name','tel','address','isplanform','lon','lat'],
        'userinfo'  =>  ['username'],
    ];

}
